# 计算分段函数[1]

# y = f(x) = 0 (x=0), 1/x (x != 0)
n = float(input())
if n == 0:
    print('f(0.0) = 0.0')
else:
    print("f(",end ='')
    print("%.1f" % n,end ='')
    print(") = ",end = "")
    x=1/n
    print("%.1f" % x)
